from os.path import join
from distutils.core import setup, Extension

liblzfpath = "liblzf-3.5"

module1 = Extension('_lzf',
                    #define_macros = [('MAJOR_VERSION', '1'),
                    #                ('MINOR_VERSION', '0')],
                    include_dirs = [liblzfpath],
                    depends = [
    join(liblzfpath,'lzf.h'),   
    join(liblzfpath,'lzfP.h'),   
    ],
    sources = ['lzfmodule.c',
               join(liblzfpath,'lzf_c.c'),   
               join(liblzfpath,'lzf_d.c'),   
               ])
liblzfpath = "../liblzf-3.5"
module2 = Extension('_lzf',
                    include_dirs = [liblzfpath],
                    libraries = ['lzf'],
                    library_dirs = [liblzfpath],
                    sources = ['lzfmodule.c',
                    ])
                    
setup (name = 'LZFModule',
       version = '1.0',
       description = 'This is a demo package',
       ext_modules = [module1])
       
